package com.huazi.eduorder.feginclient;

import com.huazi.commonutils.CourseOrder;
import org.springframework.stereotype.Component;

/**
 * @author shkstart
 * @create 2021-03-30 19:19
 */
@Component
public class CourseClientFallback implements CourseClient{
    //获取订单的课程信息时发生的回调
    @Override
    public CourseOrder getCourseOrderInfo(String id) {
        CourseOrder courseOrder = new CourseOrder();
        courseOrder.setAvatar("获取失败").setBuyCount(0L).setCover("无信息").setDescription("服务出错！无信息").setId(null);
        return courseOrder;
    }
}
